import request from '@/utils/request'

export function getDictDetial(dictName) {
  const params = {
    dictName
  }
  return request({
    url: 'api/v2/public/getDict',
    method: 'get',
    params
  })
}

export function getFieldListByFarm(farm_id) {
  const params = {
    farm_id
  }
  return request({
    url: 'api/v2/public/getFieldListByFram',
    method: 'get',
    params
  })
}
export function getEqListByDealer(dealer_id) {
  const params = {
    dealer_id
  }
  return request({
    url: 'api/v2/public/getEquipmentListByDealer',
    method: 'get',
    params
  })
}
